package test.y2021;

import cn.hutool.core.lang.Console;
import cn.hutool.json.JSONUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2021/11/19 16:18
 */
public class November3 {
    public static void main(String[] args) {
        long l = System.currentTimeMillis();

        List<Object> objects = Collections.synchronizedList(new ArrayList<>(Arrays.asList("1", 2)));
        Console.error(JSONUtil.toJsonStr(objects));
        objects.remove(0);
        Console.error(JSONUtil.toJsonStr(objects));


        System.out.format("%dms\n", System.currentTimeMillis() - l);

    }
}
